Panic rather than BUG if an error is encountered decompressing a bzImage
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Mar 2009 18:55:05 +0000 (18:55 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Mar 2009 18:55:05 +0000 (18:55 +0000)
This gives a more useful error message without an unnecessary stack dump.

Noticed by Jeremy Fitzhardinge.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/x86/bzimage.c

index 37bc78eec27bd278ea6c153887517ec29d6e1983..484367791697f102365c6f0690b2f3327c138eae 100644 (file)
@@ -58,8 +58,7 @@ static void flush_window(void);
 
 static __init void error(char *x)
 {
-    printk("%s\n", x);
-    BUG();
+    panic("%s\n", x);
 }
 
 static __init int fill_inbuf(void)